import request from '@/plugins/axios'


// 技术状态变更接口
export default {
  // 3.5.	技术状态列表
  technologyList(params = {}) {
    return request.get('/technology/findListByModelId', { params })
  },
  // 新增
  technologyInsert(params = {}) {
    return request.post('/technology/insert', params)
  },
  // 修改
  technologyUpdate(params = {}) {
    return request.post('/technology/update', params)
  },
  // 删除
  technologyDeleteById(params = {}) {
    return request.get('/technology/deleteById', {params})
  },
  // 设置重点关注
  qualityFocus(params = {}) {
    return request.post('/technology/focus', {}, {params})
  },

  // 3.6.	单机技术状态详情
  deviceDetail(params = {}) {
    return request.get('/technology/findDeviceListByTechnologyId', {params})
  },
  // 3.7.	系统技术状态详情
  systemDetail(params = {}) {
    return request.get('/technology/findSysListByTechnologyId', {params})
  },
  //3.8.	保存技术状态单机详情
  deviceDetailSave(params = {}) {
    return request.post('/technology/saveDeviceImplementation', params)
  },
  //3.8.	保存技术状态单机详情
  systemDetailSave(params = {}) {
    return request.post('/technology/saveSysImplementation', params)
  },
  // 3.10.	批量操作落实完成
  batchComp(params = {}) {
    return request.post('/technology/batchComp', {}, {params})
  },
  // 4.6.	技术概述查看
  findAttachListByTechnologyId(params = {}) {
    return request.get('/technology/findAttachListById', {params})
  },
  //	4.7.	技术问题概述保存
  technologySaveAttachList(params = {}) {
    return request.post('/technology/saveAttachList', params)
  },
  // 技术导入接口
  technologyImportUrl: '/technology/importExcel'
}